<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px;
        }

        .note-editable {
            height: 150px
        }
    </style>
</head>

<body style="color:#333;padding:3px; overflow-x: auto;">
<!-- 标题 -->
<div class="page-heade">
    <h1 class="title_color">出库单</h1>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered table" border="1" style="margin-bottom:0">
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="" class="form-label">出库单编号：</label></td>
                <td>{$data.sn}</td>
                <td style="min-width: 160px;width: 160px"><label for="" class="form-label">对应出库申请单编号：</label></td>
                <td colspan="3"><a href="sell2aToDetail_yuan.html">{$data.cksqdbh}</a></td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">申请人：</label></td>
                <td><a href="javascript:;">{$data.sqrmc}</a></td>
                <td style="min-width: 160px;width: 160px"><label for="">申请人部门：</label></td>
                <td>{$data.sqrbm}</td>
                <td style="min-width: 160px;width: 160px"><label for="">申请日期：</label></td>
                <td>{$data.sqrq}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">确认人：</label></td>
                <td><a href="javascript:;">{$data.qrrmc}</a></td>
                <td style="min-width: 160px;width: 160px"><label for="">确认人部门：</label></td>
                <td>{$data.qrrbm}</td>
                <td style="min-width: 160px;width: 160px"><label for="">确认日期：</label></td>
                <td>{$data.qrrq}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">出库方式：</label></td>
                <td>{$data.ckfs}</td>
                <td style="min-width: 160px;width: 160px"><label for="">对应仓库：</label></td>
                <td>{$data.dyck}</td>
                <td style="min-width: 160px;width: 160px"><label for="">物料类型：</label></td>
                <td>{if $data.wllx==1}销售物料{elseif $data.wllx==2}生产物料{else}成品{/if}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">
                    <label for="" class="form-label">出库意见：</label>
                </td>
                <td colspan="5">
                    {$data.ckyj}
                </td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">
                    <label for="" class="form-label">是否需要发货：</label>
                </td>
                <td colspan="5">{if $data.sfxyfh==1}是{else}否{/if}</td>
            </tr>
            <tr>
                <td colspan="6" style="padding: 1px">
                    <table class="table table-bordered" style="margin:0;padding: 0">
                        <tr class="info">
                            <th colspan="4" class="font-bold">收货信息</th>
                        </tr>
                        <tr>
                            <td style="min-width: 160px;width: 160px">地址：</td>
                            <td colspan="3">{$data.shdz}</td>
                        </tr>
                        <tr>
                            <td style="min-width: 160px;width: 160px">联系人：</td>
                            <td>{$data.shlxr}</td>
                            <td style="min-width: 160px;width: 160px">联系电话：</td>
                            <td>{$data.shdh}</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="6" style="padding: 1px">
                    <table class="table table-bordered" style="margin:0;padding: 0">
                        <tr class="info">
                            <th class="text-center">序号</th>
                            <th class="text-center">类型</th>
                            <th class="text-center">编号</th>
                            <th class="text-center">名称</th>
                            <th class="text-center">单位</th>
                            <th class="text-center">申请数量<span class="helpText">帮</span></th>
                            <th class="text-center">出库数量</th>
                            <th class="text-center">体积(立方米)</th>
                            <th class="text-center">重量(吨)</th>
                        </tr>
                        {volist name="data.list" id="row" key="k"}
                        <tr>
                            <td>{$k+(request()->param('page')?request()->param('page'):1-1)*10}</td>
                            <td>{if $data.wllx==1}销售物料{elseif $data.wllx==2}生产物料{else}成品{/if}</td>
                            {if $data.wllx==3}
                            <td><a href="{:url('Tiapply/prodetail',['pid'=>$row.title])}" class="J_menuItem">{$row.sn}</a></td>
                            {else}
                            <td><a href="{:url('Materials/view',['id'=>$row.title])}" class="J_menuItem">{$row.sn}</a></td>
                            {/if}
                            <td>{$row.title_name}</td>
                            <td>{$row.unit}</td>
                            <td class="text-right ObjectNum">{$row.sqsl}</td>
                            <td class="text-right ObjectNum">{$row.num}</td>
                            <td class="text-right ObjectNum">{$row.tj}</td>
                            <td class="text-right ObjectNum">{$row.zl}</td>
                        </tr>
                        {/volist}
                        <tr class="font-bold">
                            <td colspan="5" class="text-right">小计：</td>
                            <td class="ObjectNum text-right">{$data.zsqsl}</td>
                            <td class="ObjectNum text-right">{$data.zcksl}</td>
                            <td class="ObjectNum text-right">{$data.ztj}</td>
                            <td class="ObjectNum text-right">{$data.zzl}</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">
                    <label for="" class="form-label">备注：</label>
                </td>
                <td colspan="5">{$data.bz}</td>
            </tr>
        </table>
    </form>
</div>
{include file="Public:footer"}
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $(document).ready(function () {

        var $ObjectNum = $(".ObjectNum");
        toNum($ObjectNum);
    })
</script>
</body>

</html>
